package com.tnl.app.service;

import java.util.List;

import com.tnl.app.entity.Person;
import com.tnl.app.entity.PersonRecom;
import com.tnl.app.entity.TbFile;

public interface IPersonService {

	public Person getPersonByID(Integer personId);

	public List<Person> getAllPersons();

	public int createPerson(Person person);

	public void deleteById(Integer personId);

	public void updatePerson(Person person);
	
	public void createPersonRecom(PersonRecom person);
	
	public PersonRecom getByPersonRecomPhone(String phone);
	
	public int savePersonRecom(PersonRecom person);
	
	public PersonRecom getByPersonRecomId(int personId);
	
	public long getCountDocByPersonId(Integer personId);
	
	public TbFile getByDocId(String docId);
	
	public int saveFile(TbFile tbFile);

}
